package plugins.system;

import main.Room;
import main.User;
import plugins.Plugin;

public class PluginListPlugin extends Plugin {

   @Override
   public void execute(Room room, User user, String command, String text) {
      for (String[] keys : room.getPlugins().getCommandMap().keySet()) {
         user.dispatch(room.getPlugins().getCommandMap().get(keys).getClass().getSimpleName());
         for (String key : keys) {
            user.dispatch(key);
         }
         user.dispatch("");
      }
   }

}
